package com.ucar.train.zhoujinmu;

import com.ucar.train.service.zhoujinmu.impl.MaintenanceServiceImpl;
import com.ucar.train.service.zhoujinmu.utils.ResponseEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author zhoujinmu
 * @title MaintenanceController
 * @projectName train-parent
 * @description TODO
 * @created 2019-08-22 14:10
 **/
@Controller
@RequestMapping("/maintenance")
public class MaintenanceController {

    @Autowired
    private MaintenanceServiceImpl maintenanceService;

    @RequestMapping(value = "/car",method = RequestMethod.GET)
    @ResponseBody
    public ResponseEntity maintenanceCar() {
        String message = maintenanceService.maintenanceCar();
        return ResponseEntity.success(message);
    }
}
